package com.cmc.cloud.cmclink.doc.rpcservice.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;


/**
 * 航线合作方
 * @author heguo
 * @date 2025/10/23
 */
@Schema(description = "航线合作方")
@Data
@ToString(callSuper = true)
public class LaneOneRespVO {

    private Long id;
    @Schema(
            description = "航线代码",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private String laneCode;
    @Schema(
            description = "合作方编码，关联合作方字典",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private String partnerCode;
    @Schema(
            description = "合作方类型，0：船舶经营人，1：仓位经营人",
            requiredMode = Schema.RequiredMode.REQUIRED,
            example = "1"
    )
    private Boolean partnerType;
    @Schema(
            description = "开始日期",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private LocalDate startDate;
    @Schema(
            description = "结束日期",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private @NotNull(
            message = "结束日期不能为空"
    ) LocalDate endDate;
    @Schema(
            description = "状态，true:启用，false:停用",
            requiredMode = Schema.RequiredMode.REQUIRED,
            example = "true"
    )
    private @NotNull(
            message = "状态，true:启用，false:停用不能为空"
    ) Boolean enabled;
    @Schema(
            description = "备注",
            example = "随便"
    )
    private String remark;
    @Schema(
            description = "创建人",
            example = "随便"
    )
    private String creator;
    @Schema(
            description = "创建时间"
    )
    private LocalDateTime createTime;
    @Schema(
            description = "修改人"
    )
    private String updater;
    @Schema(
            description = "修改时间"
    )
    private LocalDateTime updateTime;
}
